package com.zy.datareceiver.binsess.stomp.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TaskService {
    private Logger log = LoggerFactory.getLogger(TaskService.class);

    @Scheduled(cron = "1/30 * * * * ? ")
    public void scheduled(){
        log.info("=====>>>>>",System.currentTimeMillis());
        //System.gc();
    }

    public static void main(String[] args) {
        String s1 = new String("abc");
        String s2 = new String("abc");
        System.out.println(s1 ==s2);
        System.out.println(s1.equals(s2));
    }
}

